package com.wicket.okrcomponent.biz.service.dto.common;

import com.wicket.okrcomponent.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.validation.constraints.NotNull;
import lombok.Data;
import java.util.Objects;

/**
 * @desc NodeRelationAttrGraphDatabaseDto
 * @使用场景
 */
@Data
public class NodeRelationAttrGraphDatabaseDto
  extends BaseDto
  implements Serializable {

  /**
   * 属性名称
   */
  @NotNull(message = "属性名称不能为空")
  @ApiModelProperty("属性名称")
  private String attributeName;

  /**
   * 属性类型 WORD:WORD文档 EXCEL:EXCEL文档 PDF:PDF文档
   */
  @NotNull(message = "属性类型不能为空")
  @ApiModelProperty("属性类型")
  private String attributeType;

  /**
   * 属性值
   */
  @NotNull(message = "属性值不能为空")
  @ApiModelProperty("属性值")
  private String attributeValue;
@Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      NodeRelationAttrGraphDatabaseDto that = (NodeRelationAttrGraphDatabaseDto) o;
      return  attributeName == that.attributeName&&attributeType == that.attributeType&&attributeValue == that.attributeValue;
    }
@Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), attributeName,attributeType,attributeValue);
    }

}
